
let Oinput=document.querySelectorAll(".main-con input");
let ospan=document.querySelectorAll(".main-con span");
Oinput[3].onclick=function(){
	location.href="3login.html";
}
Oinput[2].onclick=function(){
	$.ajax({
		url:"2.php",
		type:"post",
		data:{
			userName:Oinput[0].value,
			userPwd:Oinput[1].value
		},
		success:function(resText){
			if(resText*1){
				console.log(resText);
				let sess=sessionStorage;
				sess.setItem("Oinput","登录");
				location.href="./../../1首页.html";
			}else{
				console.log(resText);
				ospan.innerHTML = "用户名或密码错误";
			}
		}
	})
}
	
	
	
	